﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Movie.web
{
    public partial class MovieInfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Repeater1.DataSource = BLL.MovieBLL.GetMovieType();
                Repeater1.DataBind();
               DataList1.DataSource  = BLL.MovieBLL.GetMovies();
               DataList1.DataBind();
              
            }

        }
        
        //protected void btnBuy_Command(object sender, CommandEventArgs e)
        //{
        //    //获取首页单击购买按钮的电影ID
        //    string movieID=e.CommandArgument.ToString();
        //    Response.Redirect("~/CinemaList.aspx?MovieId=" + movieID);
        //}


    }
}